//
//  QNCursorNumberKeybordView.h
//  CreditCat
//
//  Created by rsh on 20120/8/27.
//  Copyright © 2020年 rsh. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "QNKeybordEnumFile.h"


@class QNCursorNumberKeybordView;

@protocol QNCursorNumberKeybordViewDelegate <NSObject>

//内部已经处理完毕,除非你有特殊需求否则不建议实现
@optional
- (void)fyCursorNumberKeybordView:(QNCursorNumberKeybordView *)fyCursorNumberKeybordView clickNumberStr:(NSString *)clickNumberStr;
- (void)clickDeleteButtonWithQNCursorNumberKeybordView:(QNCursorNumberKeybordView *)fyCursorNumberKeybordView;

@end

@interface QNCursorNumberKeybordView : UIView

@property (weak, nonatomic) id<QNCursorNumberKeybordViewDelegate>fyCursorNumberKeybordViewDelegate;

- (instancetype)initWithTargetTextfield:(UITextField *)targetTextfield numberPadType:(QNNumberPadType)numberPadType;

// MARK: 展现键盘(需要手动展现)
-(void)show;

// MARK: 消失键盘
-(void)dimiss;

// MARK: 只能输入多少位（不实现该方法，默认不限制）
-(void)inputTextCount:(NSInteger)count;

@end
